package chap6.task2;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Task6_2_2 {
    public static void main(String[] args) throws Exception {
        FileInputStream mp4=new FileInputStream("C:\\Banana\\1.mp4");
        FileOutputStream mp=new FileOutputStream("1.mp4");
        byte[] bys2=new byte[1024];
        int len2=0;
        while ((len2=mp4.read(bys2))!=-1){
            mp.write(bys2,0,len2);

        }
        mp.close();
        mp4.close();
    }
}
